import Vue from 'vue'
import Vuex from 'vuex'


Vue.use(Vuex)

//创建VueX对象
const store = new Vuex.Store({
    state:{     
        data:""
    },
    mutations:{   
        setState(state,value){  
            state.data = value
        }
    }
})

export default store